<?php
class Movie_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
    }
	
	function ajax_copy_stat()
	{
		$movie_id = $this->input->post('movie_id');
		$datetime = date('Y-m-d');
		$this->db->set('movie_click_embed', 'movie_click_embed + 1', FALSE);
		$this->db->where(array('movie_id' => $movie_id,'update_date' => $datetime));
		$this->db->update('movie_click_stat');		
		exit;
	}
}

?>